package org.stwy.pro.property;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.stwy.comm.base.BaseRecordsEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rap.common.annotation.MetaData;
import com.rap.common.entity.AuditableEntity;
import com.rap.common.entity.BaseEntity;

/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-4 17:05:42
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
@MetaData(value = "物业")
@Entity
@Table(name = "stwy_property")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PropertyEntity extends BaseRecordsEntity {
	private static final long serialVersionUID = 1L;
	
	@MetaData(value = "物业名称",comments="")
	@Column(nullable = false,length = 100)
	private String theName;
	
	@MetaData(value = "总面积",comments="")
	@Column(nullable = false,length = 100)
	private Double totalArea;
	
	@MetaData(value = "备注",comments="" )
	@Column(nullable = true,length = 2000)
	private String remark;
	
	
	/**
	 * 物业名称
	 */
	public String getTheName(){
		return this.theName;
	}
	public void setTheName(String theName){
		this.theName = theName;
	}
	/**
	 * 备注
	 */
	public String getRemark(){
		return this.remark;
	}
	public void setRemark(String remark){
		this.remark = remark;
	}
	public Double getTotalArea() {
		return totalArea;
	}
	public void setTotalArea(Double totalArea) {
		this.totalArea = totalArea;
	}
	@Override
	public String toString() {
		return this.getTheName();
	}
}
